package com.avic.rong.goodsSort.bean.secondDrawerBean;

import java.util.List;

/**
 * Created by Chenjiaxin on 2019/8/8 09:58
 * E-Mail Address：16601203965@163.com
 */
public class GoodsSortGjDrawerBean {

    private List<AllAttrBean> allAttr;
    private List<CategoryBean> category;

    public List<AllAttrBean> getAllAttr() {
        return allAttr;
    }

    public void setAllAttr(List<AllAttrBean> allAttr) {
        this.allAttr = allAttr;
    }

    public List<CategoryBean> getCategory() {
        return category;
    }

    public void setCategory(List<CategoryBean> category) {
        this.category = category;
    }

    public static class AllAttrBean {
        /**
         * defaultUnit :
         * isFilter : 0
         * sortOrder : 1
         * typeId : 18
         * id : 29
         * attrValues : ["在线使用","下载使用","光盘邮寄"]
         * attrName : 使用方式
         * attrType : 1
         */

        private String defaultUnit;
        private int isFilter;
        private int sortOrder;
        private int typeId;
        private int id;
        private String attrName;
        private int attrType;
        private List<String> attrValues;

        public String getDefaultUnit() {
            return defaultUnit;
        }

        public void setDefaultUnit(String defaultUnit) {
            this.defaultUnit = defaultUnit;
        }

        public int getIsFilter() {
            return isFilter;
        }

        public void setIsFilter(int isFilter) {
            this.isFilter = isFilter;
        }

        public int getSortOrder() {
            return sortOrder;
        }

        public void setSortOrder(int sortOrder) {
            this.sortOrder = sortOrder;
        }

        public int getTypeId() {
            return typeId;
        }

        public void setTypeId(int typeId) {
            this.typeId = typeId;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getAttrName() {
            return attrName;
        }

        public void setAttrName(String attrName) {
            this.attrName = attrName;
        }

        public int getAttrType() {
            return attrType;
        }

        public void setAttrType(int attrType) {
            this.attrType = attrType;
        }

        public List<String> getAttrValues() {
            return attrValues;
        }

        public void setAttrValues(List<String> attrValues) {
            this.attrValues = attrValues;
        }
    }

    public static class CategoryBean {
        /**
         * catId : 456
         * subCategory : [{"catId":457,"subCategory":[],"catName":"数据库类系统"},{"catId":458,"subCategory":[],"catName":"在线云服务"},{"catId":459,"subCategory":[],"catName":"工具类软件"},{"catId":2062,"subCategory":[],"catName":"数据更新"},{"catId":2066,"subCategory":[],"catName":"系统配件及小工具"}]
         * catName : 软件产品
         */

        private int catId;
        private String catName;
        private List<SubCategoryBean> subCategory;

        public int getCatId() {
            return catId;
        }

        public void setCatId(int catId) {
            this.catId = catId;
        }

        public String getCatName() {
            return catName;
        }

        public void setCatName(String catName) {
            this.catName = catName;
        }

        public List<SubCategoryBean> getSubCategory() {
            return subCategory;
        }

        public void setSubCategory(List<SubCategoryBean> subCategory) {
            this.subCategory = subCategory;
        }

        public static class SubCategoryBean {
            /**
             * catId : 457
             * subCategory : []
             * catName : 数据库类系统
             */

            private int catId;
            private String catName;
            private List<?> subCategory;
            private boolean isSelected = false;

            public boolean isSelected() {
                return isSelected;
            }

            public void setSelected(boolean selected) {
                isSelected = selected;
            }

            public int getCatId() {
                return catId;
            }

            public void setCatId(int catId) {
                this.catId = catId;
            }

            public String getCatName() {
                return catName;
            }

            public void setCatName(String catName) {
                this.catName = catName;
            }

            public List<?> getSubCategory() {
                return subCategory;
            }

            public void setSubCategory(List<?> subCategory) {
                this.subCategory = subCategory;
            }
        }
    }
}
